<script setup lang="ts">
definePageMeta({
  layout: 'default2',
  title: '邮件详情',
  i18n: 'menu.emailInfo',
})
const route = useRoute()
// console.log(111111,route);
const obj = ref({
  id: 2,
  name: '邮件标题4',
  time: '2025-04-23 18:00:00',
  cont: '我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊我是内容啊',
  isRead: true
})
// const params = JSON.parse(route.query) as any
</script>

<template>
  <div mx-auto text-16 text-dark dark:text-white>
    <div class="bg-#ffffff">
      <div class="flex items-center  mt-10 mx-15 my-9 py-15 border-b-1 border-#f6f6f6">
        <div class="mr-10">
          <img v-if="obj.isRead" src="/img/email.png" alt="" class="w-45">
          <img v-else src="/img/email.png" alt="" class="w-45">
        </div>
        <div>
          <div class="font-bold text-14 mb-3 color-#1a1d22">{{ obj.name }}</div>
          <div class="text-12 color-#6b6f7b">{{ obj.time }}</div>
        </div>
      </div>
      <div class="m-10 bg-#ffffff px-12 pb-12 leading-30 indent-2em color-#25262b text-14">
        {{obj.cont}}
      </div>
    </div>
  </div>
</template>
